<?php
/**
 * Vip用户信息
 *
 * @author  
 * @time 2024-01-23 14:44:38
 */

namespace App\Models;


class AiLawVipUsers extends Model
{

    protected $connection = 'mysql';
    protected $table = 'ai_law_vip_users';
    protected $guarded = ['id'];

    public function paidService()
    {
        return $this->belongsTo('App\Models\AiLawPaidService', 'user_level', 'service_code')
            ->select("id", "service_code", "service_type", "service_name", "price", "expired_days", "created_at");
    }
}